Skip to main content

Save Document As PDF

AutomatR.Word.Activities.SaveDocumentAsPDF

The "Save Document As PDF" activity in AutomatR is part of the Word activities package, allowing you to export a Word document in PDF format. This activity provides the flexibility to specify the document path, choose whether to overwrite existing files, and introduces a delay option for synchronization.

Properties

NameDescription
Input
File PathSpecifies the full path of the document on the local drive, including the filename, that you want to save as a PDF. String variables containing the document path.
OverwriteWhen selected, overwrites files at the desired location. Boolean variables to determine whether to overwrite existing files.
Misc
Display NameProvides a customizable name for the activity displayed in the workflow. Enhances clarity and organization within the automation project. String variables containing the desired display name.
Optional
DelaySpecifies the amount of time (in seconds) to wait before executing the "Save Document As PDF" activity. Useful for handling synchronization issues. Integer variables containing the delay duration. Example: If the amount of time is 1000 milliseconds or 1 sec, i.e., 1.

How to use:

  1. Drag and drop the "Save Document As PDF" activity onto the workflow.
  2. Configure the properties by specifying the document path and selecting the overwrite option if needed.
  3. Optionally, configure the delay before executing the activity.
  4. Execute the workflow to export the Word document as a PDF.

Example:

Consider an example where the "Save Document As PDF" activity is used to export a Word document named "Document1.docx" to PDF:

Save Document As PDF:
File Path: "C:\Documents\Document1.docx"
Overwrite: True

In this example, the activity exports "Document1.docx" to PDF, overwriting any existing file at the specified path if the "Overwrite" option is set to true.